package com.tvserials.notification.vo;

import com.tvserials.notification.dto.Serial;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by oleksandr.dokienko on 3/31/2014.
 */
public class TvEpisodeFilterVO implements Serializable {
    //TODO remove pageNo, instead use pageSize,startPosition
    private int pageNo;
    private int pageSize;
    private int startPosition;
    //TODO update to use ids, instead of full objects
    private List<Serial> serials;
    private Date lastSyncDate;
    private List<SourceType> sourceTypes;

    public TvEpisodeFilterVO(int pageNo, Date latestSyncDate, List<Serial> serialSet) {
        this.pageNo = pageNo;
        this.serials = serialSet;
        this.lastSyncDate = latestSyncDate;
    }

    public TvEpisodeFilterVO() {
    }

    public List<SourceType> getSourceTypes() {
        return sourceTypes;
    }

    public void setSourceTypes(List<SourceType> sourceTypes) {
        this.sourceTypes = sourceTypes;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getStartPosition() {
        return startPosition;
    }

    public void setStartPosition(int startPosition) {
        this.startPosition = startPosition;
    }

    public List<Serial> getSerials() {
        return serials;
    }

    public void setSerials(List<Serial> serials) {
        this.serials = serials;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public Date getLastSyncDate() {
        return lastSyncDate;
    }

    public void setLastSyncDate(Date lastSyncDate) {
        this.lastSyncDate = lastSyncDate;
    }
}
